package cn.com.sparkle.paxos.userserver;

import com.google.protobuf.GeneratedMessage;

import cn.com.sparkle.paxos.addprocess.DealState;
import cn.com.sparkle.paxos.client.PaxosOperater;
import cn.com.sparkle.paxos.net.factory.NetCloseException;
import cn.com.sparkle.paxos.net.factory.PaxosSession;

public class UserPaxosSession extends PaxosSession{
	private PaxosSession session;
	private PaxosOperater paxosOperater;
	private DealState dealState;
	
	public UserPaxosSession(PaxosSession session){
		this.session = session;
	}
	@Override
	public void write(GeneratedMessage message) throws NetCloseException {
		session.write(message);
	}

	@Override
	public void closeSession() {
		session.closeSession();
	}
	public PaxosOperater getPaxosOperater() {
		return paxosOperater;
	}
	public void setPaxosOperater(PaxosOperater paxosOperater) {
		this.paxosOperater = paxosOperater;
	}
	public DealState getDealState() {
		return dealState;
	}
	public void setDealState(DealState dealState) {
		this.dealState = dealState;
	}
	
}
